import { createApp } from "vue";
import App from "./App.vue";
// 导入全局样式
import "./styles/index.scss";
// 路由
import router from "./router";
// element-plus
import installElementPlus from "./plugins/elementPlus";
// pinia
import installPinia from "./store";
// svgIcon
import "virtual:svg-icons-register";
// i18n国际化
import i18n from "./i18n";
// permission
import "./permission";
// 自定义指令
import installDirective from "./directives";

// vue-signature-pad
import installSignaturePad from "./plugins/signaturePad.ts";

const app = createApp(App);
installElementPlus(app);
installPinia(app);
installDirective(app);
installSignaturePad(app);
app.use(i18n);
app.use(router).mount("#app");
